package io.litchi.common.tree;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

/**
 * 通用树节点
 *
 * @author helang
 * @since 2025-09-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode<T> {

    private Long id;

    private Long pid;

    private Integer level;

    private Collection<T> children;


}